package com.woniuxy.credit_loans.audit_li.service.impl;

import com.woniuxy.credit_loans.audit_li.service.BorrowerInfoService;
import com.woniuxy.credit_loans.audit_li.vo.BorrowerInfoUserVo;
import com.woniuxy.credit_loans.audit_li.vo.BorrowerInfoVo;
import com.woniuxy.credit_loans.entity.BorrowerInfo;
import com.woniuxy.credit_loans.mapper.BorrowerInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：halisir
 * @date ：Created in 2022/12/8 20:03
 * @description：
 * @modified By：
 * @version: $
 */
@Service
public class BorrowerInfoServiceImpl implements BorrowerInfoService {
    @Autowired
    private BorrowerInfoMapper borrowerInfoMapper;

    @Override
    public BorrowerInfoUserVo selectCheckByUserNameLi(String userName) {
        return borrowerInfoMapper.selectCheckByUserNameLi(userName);
    }

    @Override
    public List<BorrowerInfoVo> selectAllCheck() {
        return borrowerInfoMapper.selectAllCheck();
    }

    @Override
    public List<BorrowerInfoVo> selectCheckByDiDebitStatusChu() {
        return borrowerInfoMapper.selectCheckByDiDebitStatusChu();
    }

    @Override
    public List<BorrowerInfoVo> selectCheckByDiDebitStatusFu() {
        return borrowerInfoMapper.selectCheckByDiDebitStatusFu();
    }

    @Override
    public List<BorrowerInfoVo> selectCheckByDiDebitStatusWei() {
        return borrowerInfoMapper.selectCheckByDiDebitStatusWei();
    }

    @Override
    public BorrowerInfoVo selectCheckByUinfoId(Long uinfoId) {
        return borrowerInfoMapper.selectCheckByUinfoId(uinfoId);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return borrowerInfoMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(BorrowerInfo record) {
        return borrowerInfoMapper.insertSelective(record);
    }

    @Override
    public BorrowerInfo selectByPrimaryKey(Long id) {
        return borrowerInfoMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(BorrowerInfo record) {
        return borrowerInfoMapper.updateByPrimaryKeySelective(record);
    }
}
